package com.example.generictest.bean;

import com.example.generictest.utils.ConfigSource;
import com.example.generictest.utils.Value;
import lombok.*;

/**
 * @author lee
 * @date 2022年03月16日 11:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode
@ConfigSource("test.yml")
public class School {
    @Value("School.schoolName")
    private String schoolName;

    @Value("School.principal")
    private String principal;
}
